
const { apiPreFix } = require('../config').server
const settingController = require('../controllers/admin/setting')
module.exports = (router) => {
  // 设置配置
  router.post(`${apiPreFix}/setting/setter`, async ctx => {
    await settingController.setter(ctx)
  })
  // 获取配置
  router.get(`${apiPreFix}/setting/getter`, async ctx => {
    await settingController.getter(ctx)
  })
}